package com.snail.generator.entity;

import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class GenParams {
    public String packages;
    public String packageName;
    public String module;
    public String tablePrefix;
    public String tableName;
    public String tableComment;
    public List<ColumnInfo> columns;
    public String className;
    public String ClassName;
    public String class_name;

    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>();

        map.put("packages", packages);
        map.put("packageName", packageName);
        map.put("module", module);
        map.put("tablePrefix", tablePrefix);
        map.put("tableName", tableName);
        map.put("tableComment", tableComment);
        map.put("columns", columns);
        map.put("className", className);
        map.put("ClassName", ClassName);
        map.put("class_name", class_name);

        return map;
    }
}
